package org.bigmarketapi.projectreview.DesingMode.DecoratorPattern.Update;

import org.bigmarketapi.projectreview.DesingMode.DecoratorPattern.Robot;

/**
 * @BelongsProject: ProjectReview
 * @BelongsPackage: org.bigmarketapi.projectreview.DesingMode.DecoratorPattern.Update
 * @Author: dujiaqi
 * @CreateTime: 2024-11-16  16:59
 * @Description: TODO
 * @Version: 1.0
 */
public class DancingRobotDecorator extends  abstractRobotDecorator{
    public DancingRobotDecorator(Robot robot) {
        super(robot);
    }

    @Override
    public void doSomeThing() {
        super.doSomeThing();
        System.out.println("跳舞");
    }

    @Override
    public Robot decorator(Robot robot) {
       return new DancingRobotDecorator(robot);
    }
}
